import React from 'react';
import PropTypes from 'prop-types';
import Header from '../../components/header/index';
import Footer from '../../components/footer/index';


class Root extends React.Component {
  constructor(props) {
    super(props);
    this.state = {

    }
  }
  componentDidMount() {

  }
  render() {
    return (
      <div id="root">
        <Header />
        {this.props.children}
        <Footer />
      </div>
    )
  }
}
export default Root;
Root.propTypes = {
  children: PropTypes.oneOfType([PropTypes.element, PropTypes.array]),
}
